package com.project.code.base;

/**
 * 基础数据API
 * @author lipeng
 * */
public class ApiResponse<T> {
    /**
     * 请求是否成功
     * */
    private boolean success;
    /**
     * 相应码
     * */
    private int code;
    /**
     * 说明
     * */
    private String msg;
    /**
     * 返回内容
     * */
    private T data;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

}
